import { request } from '@/services/request';
import type { getSupplierListParams,supplierParams,updateSupplierParams } from './data';


//获取供应商列表
export async function getSupplierList(data: getSupplierListParams) {
    return request('/adminapi/getSupplierList', {
        params: data,
    });
}


//删除供应商信息
export async function deleteSupplier(data: supplierParams) {
    return request('/adminapi/deleteSupplier', {
        params: data,
    });
}

//获取供应商详情
export async function getSupplierInfo(data: supplierParams) {
    return request('/adminapi/getSupplierInfo', {
        params: data,
    });
}


//新增供应商
export async function createSupplier(data) {
    return request('/adminapi/createSupplier', {
        params: data,
    });
}


//更新供应商详情
export async function updateSupplier(data: updateSupplierParams) {
    return request('/adminapi/updateSupplier', {
        params: data,
    });
}


